package org.jeecg.modules.demo.yhs.Service;

import org.jeecg.modules.demo.yhs.mapper.HistoryMapper;
import org.jeecg.modules.demo.yhs.POJO.History;
import org.jeecg.modules.demo.yhs.POJO.Shistory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HistoryServiceImpl implements HistoryService {

    @Autowired
    HistoryMapper historyMapper;

    public List<History> findAll() {
        return historyMapper.findAll();
    }


    //本项目并没有，供另外的终端或者别的调用
    public int insert(Shistory history) {
        System.out.println(history);
       int a= historyMapper.insert(history);
        return a;
    }
}
